/*
 * @作者：814878176@qq.com
 * @时间：2020-03-31
 * @描述：stylus的公共变量
 */
$mainColor = #1ca6ec;   //rgba(28,166,236,0.45)
$mainColor1 = #ffc468;   //rgba(244, 186, 0, 0.3)

$Color1 = #fff;
$Color2 = #525252;
$Color3 = #4249f4;   



/*
* 设置水平垂直居中
*/
SetCenter() {
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}
SetCenterX() {
    left: 50%;
    transform: translate(-50%);
}
SetCenterY() {
    top: 50%;
    transform: translate(0,-50%);
}


/*
* 设置居中占满容器的背景图
* 传参 - 图片地址
*/
SetCenterBg( $url ) {
    background: url( $url ) no-repeat center;
    background-size: 100% 100%;
}